if first char of the message box is in "0123456789("
then dial the message box
else
Ask "What Number?"
dial it
end if
end mouseUp
-- part 7 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=416 top=42 right=69 bottom=451
-- title width / last selected line: 0
-- icon id / first selected line: 11045 / 11045
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Home
----- HyperTalk script -----
on mouseUp
visual effect iris close
put empty into HoldAreaCode
go home
end mouseUp
-- part 9 (button)
-- low flags: 00
-- high flags: E006
-- rect: left=65 top=228 right=246 bottom=227
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Modem (tone dialing)
----- HyperTalk script -----
on mouseUp
set hilite of button "speaker (tone dialing)" to false
set hilite of button "modem (tone dialing)" to true
set hilite of button "modem (pulse dialing)" to false
end mouseUp
-- part 10 (button)
-- low flags: 00
-- high flags: A006
-- rect: left=65 top=211 right=229 bottom=227
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Speaker (tone dialing)
----- HyperTalk script -----
on mouseUp
set hilite of button "speaker (tone dialing)" to true
set hilite of button "modem (tone dialing)" to false
set hilite of button "modem (pulse dialing)" to false
end mouseUp
-- part 11 (button)
-- low flags: 00
-- high flags: A006
-- rect: left=65 top=245 right=263 bottom=227
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Modem (pulse dialing)
----- HyperTalk script -----
on mouseUp
set hilite of button "speaker (tone dialing)" to false
set hilite of button "modem (tone dialing)" to false
set hilite of button "modem (pulse dialing)" to true
end mouseUp
-- part 18 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=43 top=174 right=204 bottom=230
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Dial
----- HyperTalk script -----
on mouseUp
put "" into background field id 3
if first char of the message box is in "0123456789("
then dial the message box
else
Ask "Dial what number?"
dial it
end if
end mouseUp
-- part 21 (button)
-- low flags: 00
-- high flags: 8003
-- rect: left=245 top=249 right=270 bottom=347
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Modem Offline
----- HyperTalk script -----
on mouseUp
send "dial " & quote & " ATH " & quote & " with modem " & quote & " ATZ " & quote to HyperCard
end mouseUp
-- part 22 (button)
-- low flags: 00
-- high flags: 8003
-- rect: left=245 top=224 right=245 bottom=347
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Cancel Call
----- HyperTalk script -----
-- this script hangs my modem up (it's a Hayes-compatible)
-- I don't understand how it does it in terms of HyperTalk, I just
-- copied the Dial routines from the stack script & started dickin'
-- with 'em
-- the Modem Offline button script is the same
on mouseUp
send "dial " & quote & " ATH " & quote & " with modem " & quote & " ATZ " & quote to HyperCard
end mouseUp
-- part 17 (field)
-- low flags: 81
-- high flags: 2007
-- rect: left=6 top=41 right=281 bottom=244
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name: info
----- HyperTalk script -----
on mouseUp
hide the target
end mouseUp
-- part 23 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=379 top=42 right=69 bottom=414
-- title width / last selected line: 0
-- icon id / first selected line: 26635 / 26635
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: help
----- HyperTalk script -----
on mouseUp
set visible of card field "info" to not the visible of card field "info"
end mouseUp
-- part 25 (button)
-- low flags: 00
-- high flags: 8000
-- rect: left=402 top=194 right=221 bottom=465
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
put empty into field "long dist preamble"
end mouseUp
-- part contents for background part 9
----- text -----
Local Area Code:
-- part contents for background part 10
----- text -----
Dial for outside line:
-- part contents for background part 12
----- text -----
Dial for long distance:
-- part contents for background part 20
----- text -----
2:36 PM
-- part contents for card part 17
----- text -----
HOW TO USE MODIFONE
• Choose speaker or modem. Click Local or Long Distance to dial. (Is your modem connected and turned on before you use a modem setting?)
• If you don’t need to dial anything for an outside line, clear that field.
• The - Dial for long distance - field is automatically updated by the Area Codes button. You may also type an area code in. You may also type the long distance number into the "Dial What Number" box if this field is blank, as when you first open ModiFone.
Finally, you can type a number into the Message Box and hit the proper "Dial" button.
BUTTONS
• Press Cancel Call to cut off modem dialing
(or ringing)
• Press Modem Off when someone answers or you pick up the phone.
• Press Clear to Clear the Dial for long distance field.
FINDING AREA CODES
• The Area Codes button will find a stack named "ModiFone's Area Codes".
This second stack contains a new button which will snatch the area code from a card after you've searched for a city or state or person (obviously, by unlocking the fields in ModiFone's Area Codes, you can add cities, towns, and even people's names).
When you've grabbed the area code, it appears with its "1-" prefix in
"Dial for long distance".
==================================Original by Robin Shank and Ted Kaehler of Apple Computer. Thanks to Apple for the swell HyperCard Party at MacExpo. This version & ModiFone's Area Codes by Craig O'Donnell / Dadadata‚Ñ¢ MIDI Systems.